package com.dst.service.impl;

import com.dst.dao.UserMapper;
import com.dst.entity.User;
import com.dst.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service
public class UserServcieImpl implements UserService {
    @Autowired
    @Qualifier("userMapper")
    private UserMapper userMapper;

    @Override
    public User login(String username, String password) {
        User user = userMapper.selectUserByUsernameandPassword(username, password);
        return user;
    }
}
